<%@  language="javascript" %>
<html>
<head>
    <title>章节-视频</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="../../favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="../../content/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../content/Icon.css" rel="stylesheet" />
    <link href="../../content/Site.css" rel="stylesheet" />
</head>
<body>
    <div class="form-group">
        <label for="video" class="col-xs-3 control-label">视频</label>
        <div class="col-xs-9">
            <input type="file" class="form-control" id="video" name="video" />
            <button class="btn btn-default" onclick="onUploadClick();">上传</button>
        </div>
    </div>
    <script src="../../scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../content/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="../../scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="../../content/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
    <script src="../../scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        var onUploadClick = function () {
            $("#video").uploadify({
                height: 30,
                width: 120,
                swf: '/content/uploadify/uploadify.swf',
                uploader: '/controller/chapter-video.controller.asp',
                'auto': true,
                'buttonText': '上传图片',
                'multi': false,
                'sizeLimit': 2 * 1024 * 1024,
                'removeTimeout': 2, //进度条消失秒数
                'onInit': function () { },
                'onSelect': function (fileObj) { //判断文件大小

                },
                'onUploadComplete': function (file) {
                },
                'onUploadSuccess': function (file, data, response) { //上传成功回调方法
                    alert(data);
                }
            });
        }
    </script>
</body>
</html>
